﻿<Window x:Class="FarpacHelper.EditToolWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Tool Editor" Height="660" Width="766" Background="Black" Loaded="Window_Loaded" Topmost="True" ResizeMode="NoResize">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Border Background="White" Margin="5,5,0,0">
            <Image RenderTransformOrigin="0.722,0.713" x:Name="imgTool" Stretch="Fill" Margin="20">
            </Image>
        </Border>
        <StackPanel HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="230" Height="Auto" Grid.Column="1" Background="{x:Null}" Margin="10,0,5,0">
            <StackPanel.Resources>
                <Style x:Key="{x:Type CheckBox}" TargetType="{x:Type CheckBox}">
                    <Setter Property="Margin" Value="5,5,5,5"/>
                </Style>
            </StackPanel.Resources>
            <Image x:Name="imgCrop" Width="230" Height="200" Margin="0,5,0,0"/>
            <GroupBox Margin="0,5,0,0" Foreground="White" BorderBrush="White" BorderThickness="2">
                <GroupBox.Header>
                    <Label Foreground="Yellow">Crop Color</Label>
                </GroupBox.Header>
                <WrapPanel Height="Auto">
                    <RadioButton x:Name="rbRed" Content="Red" Foreground="#FFFFFFFF" IsChecked="True" Checked="Red_Checked" Margin="5,0,0,0" />
                    <RadioButton Content="Grey" Foreground="#FFFFFFFF" Checked="Grey_Checked" Margin="60,0,0,0" />
                </WrapPanel>
            </GroupBox>
            <GroupBox Foreground="White" Height="Auto" Margin="0,5,0,0" BorderBrush="White" BorderThickness="2">
                <GroupBox.Header>
                    <Label Foreground="Yellow">Tool Dimension</Label>
                </GroupBox.Header>
                <StackPanel Height="Auto" Margin="5,0">
                    <WrapPanel Margin="0,5" Width="Auto">
                        <TextBlock Text="Model :" Width="70" VerticalAlignment="Center" />
                        <ComboBox Text="..Please Choose..." Width="137" Name="cbModel">
                            <ComboBoxItem Content="N/A" IsSelected="True" />
                            <ComboBoxItem Content="2in" />
                            <ComboBoxItem Content="1.5625in" />
                            <ComboBoxItem Content="2.5in" />
                        </ComboBox>
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Description :" Width="70" VerticalAlignment="Top" />
                        <TextBox TextWrapping="Wrap" Width="137" Height="44" Name="txtDescription" />
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Length :" Width="70" VerticalAlignment="Center"/>
                        <TextBox Text="..." Width="40" Name="txtLength" LostFocus="txtLength_LostFocus" />
                        <Label Content="cm --> ft" Width="52" VerticalAlignment="Center" Margin="5,0,0,0" Name="lbLength" Foreground="White" Padding="0" MouseDoubleClick="lbLength_MouseDoubleClick" />
                        <TextBox Text="..." Width="40" IsReadOnly="True" Background="Gray" Foreground="White" Name="txtLength2" />
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Weight :" Width="70" VerticalAlignment="Center" />
                        <TextBox Text="..." Width="40" Name="txtWeight" LostFocus="txtWeight_LostFocus" />
                        <Label Content="kg --> lbs" Width="52" VerticalAlignment="Center" Margin="5,0,0,0" Name="lbWeight" Padding="0" Foreground="White" MouseDoubleClick="lbWeight_MouseDoubleClick" />
                        <TextBox Text="..." Width="40" IsReadOnly="True" Background="Gray" Foreground="White" Name="txtWeight2" />
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Diameter :" Width="70" VerticalAlignment="Center" Foreground="Red" />
                        <TextBox Text="..." Width="40" Name="txtDiameter" LostFocus="txtDiameter_LostFocus" />
                        <Label Content="cm --> in" Width="52" VerticalAlignment="Center" Margin="5,0,0,0" Name="lbDiameter" Foreground="White" Padding="0" MouseDoubleClick="lbDiameter_MouseDoubleClick" />
                        <TextBox Text="..." Width="40" IsReadOnly="True" Background="Gray" Foreground="White" Name="txtDiameter2" />
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Voltage :" Width="70" VerticalAlignment="Center" />
                        <TextBox Text="..." Width="40" Name="txtVoltage" LostFocus="txtVoltage_LostFocus" />
                        <Label Content="V" Width="52" VerticalAlignment="Center" Margin="5,0,0,0" Name="lbVolt" Foreground="White" Padding="0"/>
                    </WrapPanel>
                    <WrapPanel Margin="0,5">
                        <TextBlock Text="Current :" Width="70" VerticalAlignment="Center" />
                        <TextBox Text="..." Width="40" Name="txtCurrent" LostFocus="txtCurrent_LostFocus" />
                        <Label Content="A" Width="52" VerticalAlignment="Center" Margin="5,0,0,0" Name="lbAmp" Foreground="White" Padding="0"/>
                    </WrapPanel>
                </StackPanel>
            </GroupBox>
            <WrapPanel Margin="0,10,0,0">
                <Button Content="Previous" Height="22" Name="butPrev" Width="75" FontWeight="Bold" Foreground="Blue" Click="butPrev_Click" />
                <Button Content="QUIT" Height="22" Name="butQuit" Width="50" Margin="15,0" FontWeight="Bold" OpacityMask="{x:Null}" Foreground="Red" Click="butQuit_Click" />
                <Button Content="Next" Height="22" Name="butNext" Width="75" FontWeight="Bold" Foreground="Blue" Click="butNext_Click" />
                <Button Content="CANCEL" Height="30" Name="butCancel" Width="110" FontWeight="Bold" Foreground="Black" Margin="0,10,0,0" Click="butCancel_Click" />
                <Button Content="SAVE" Height="30" Name="butSave" Width="110" FontWeight="Bold" Foreground="Green" Margin="10,10,0,0" Click="butSave_Click" />
            </WrapPanel>
        </StackPanel>
        <TextBlock HorizontalAlignment="Stretch" Margin="3,5,0,3" x:Name="tblkClippingRectangle" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Grid.Row="1" Foreground="#FFFFFFFF" Text="ClippingRectangle" TextWrapping="Wrap"/>
    </Grid>
</Window>
